/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * Project Name: lmrp-android app
 * Create Time: 16-2-16 下午6:35
 */

package com.lenovo.mso2o.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

public class SoRepair {
	
    private Integer repairId;

    private Short dispatchType;

    private Date arrivalTime;

    private Date closeTime;

    private String serviceNumber;

    private String emergencyLevel;

    private Date visitTime;

    private String visitAddress;

    private BigDecimal coordinateX;

    private BigDecimal coordinateY;

    private String contactPerson;

    private String contactPhone;

    private Short hasParts;

    private Short needReturnVisit;

    private String faultDescription;

    private Short isInService;

    private String notes;

    private Integer closeReason;

    private String closeRemak;

    private String closeAudioCdn;

    private String closeAudioLocal;

    private Integer projectId;

    private Integer caseId;

    private Integer organization;

    private Integer engineer;
    
    private String soStatus;
    private Date soStatusUpdateTime;

    private Integer nextStep;

    private Integer processId;

    private Integer custAddressId;

    private Integer receiveType;
    
    private Integer serviceType;//服务方式
    
    private Integer province;
    
    private Integer city;
    
    private Integer county;
    
    private Integer createUserId;
    
    private Integer updateUserId;
    
    private Date updateTime;
    
    private Integer faultId;
    private Date createTime;

    private Integer deviceId;

    private Integer customerId;
    
    private Double distance;

	private Project project;
    
//    private ProjCustAddr projCustAddr;
    
    private ProjDevice projDevice;
    
    private SysDict soStatue;
    
    private SysFault sysFault;
    
    private SysPerson engineerSysUser;
    
    private String faultType;//故障信息形如 “xxxx > xxxx”

	private Map<PrcStepConfig,Integer> flowStep=new LinkedHashMap<PrcStepConfig, Integer>(); 
    
    private PrcStepConfig nextStepConfig;
    
    public Integer getRepairId() {
        return repairId;
    }
 
    public void setRepairId(Integer repairId) {
        this.repairId = repairId;
    }

    public Short getDispatchType() {
        return dispatchType;
    }

    public void setDispatchType(Short dispatchType) {
        this.dispatchType = dispatchType;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public String getServiceNumber() {
        return serviceNumber;
    }

    public void setServiceNumber(String serviceNumber) {
        this.serviceNumber = serviceNumber == null ? null : serviceNumber.trim();
    }

    public String getEmergencyLevel() {
        return emergencyLevel;
    }

    public void setEmergencyLevel(String emergencyLevel) {
        this.emergencyLevel = emergencyLevel == null ? null : emergencyLevel.trim();
    }

    public Date getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    public String getVisitAddress() {
        return visitAddress;
    }

    public void setVisitAddress(String visitAddress) {
        this.visitAddress = visitAddress == null ? null : visitAddress.trim();
    }

    public BigDecimal getCoordinateX() {
        return coordinateX;
    }

    public void setCoordinateX(BigDecimal coordinateX) {
        this.coordinateX = coordinateX;
    }

    public BigDecimal getCoordinateY() {
        return coordinateY;
    }

    public void setCoordinateY(BigDecimal coordinateY) {
        this.coordinateY = coordinateY;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson == null ? null : contactPerson.trim();
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone == null ? null : contactPhone.trim();
    }

    public Short getHasParts() {
        return hasParts;
    }

    public void setHasParts(Short hasParts) {
        this.hasParts = hasParts;
    }

    public Short getNeedReturnVisit() {
        return needReturnVisit;
    }

    public void setNeedReturnVisit(Short needReturnVisit) {
        this.needReturnVisit = needReturnVisit;
    }

    public String getFaultDescription() {
        return faultDescription;
    }

    public void setFaultDescription(String faultDescription) {
        this.faultDescription = faultDescription == null ? null : faultDescription.trim();
    }

    public Short getIsInService() {
        return isInService;
    }

    public void setIsInService(Short isInService) {
        this.isInService = isInService;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes == null ? null : notes.trim();
    }

    public Integer getCloseReason() {
        return closeReason;
    }

    public void setCloseReason(Integer closeReason) {
        this.closeReason = closeReason;
    }

    public String getCloseRemak() {
        return closeRemak;
    }

    public void setCloseRemak(String closeRemak) {
        this.closeRemak = closeRemak == null ? null : closeRemak.trim();
    }

    public String getCloseAudioCdn() {
        return closeAudioCdn;
    }

    public void setCloseAudioCdn(String closeAudioCdn) {
        this.closeAudioCdn = closeAudioCdn == null ? null : closeAudioCdn.trim();
    }

    public String getCloseAudioLocal() {
        return closeAudioLocal;
    }

    public void setCloseAudioLocal(String closeAudioLocal) {
        this.closeAudioLocal = closeAudioLocal == null ? null : closeAudioLocal.trim();
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Integer getCaseId() {
        return caseId;
    }

    public void setCaseId(Integer caseId) {
        this.caseId = caseId;
    }

    public Integer getOrganization() {
        return organization;
    }

    public void setOrganization(Integer organization) {
        this.organization = organization;
    }

    public Integer getEngineer() {
        return engineer;
    }

    public void setEngineer(Integer engineer) {
        this.engineer = engineer;
    }

    public String getSoStatus() {
        return soStatus;
    }

    public void setSoStatus(String soStatus) {
        this.soStatus = soStatus == null ? null : soStatus.trim();
    }

    public Date getSoStatusUpdateTime() {
        return soStatusUpdateTime;
    }

    public void setSoStatusUpdateTime(Date soStatusUpdateTime) {
        this.soStatusUpdateTime = soStatusUpdateTime;
    }

    public Integer getNextStep() {
        return nextStep;
    }

    public void setNextStep(Integer nextStep) {
        this.nextStep = nextStep;
    }

    public Integer getProcessId() {
        return processId;
    }

    public void setProcessId(Integer processId) {
        this.processId = processId;
    }

    public Integer getCustAddressId() {
        return custAddressId;
    }

    public void setCustAddressId(Integer custAddressId) {
        this.custAddressId = custAddressId;
    }

    public Integer getReceiveType() {
        return receiveType;
    }

    public void setReceiveType(Integer receiveType) {
        this.receiveType = receiveType;
    }

    public Integer getFaultId() {
        return faultId;
    }

    public void setFaultId(Integer faultId) {
        this.faultId = faultId;
    }

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

//	public ProjCustAddr getProjCustAddr() {
//		return projCustAddr;
//	}
//
//	public void setProjCustAddr(ProjCustAddr projCustAddr) {
//		this.projCustAddr = projCustAddr;
//	}
	    
    public String getFaultType() {
		return faultType;
	}

	public void setFaultType(String faultType) {
		this.faultType = faultType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Map<PrcStepConfig,Integer> getFlowStep() {
		return flowStep;
	}

	public void setFlowStep(Map<PrcStepConfig,Integer> flowStep) {
		this.flowStep = flowStep;
	}
	
	public void putFlowStep(PrcStepConfig prcStepConfig,Integer flag){
		this.flowStep.put(prcStepConfig, flag);
	}
	
	public void removeFlowStep(PrcStepConfig prcStepConfig){
		this.flowStep.remove(prcStepConfig);
	}

	public PrcStepConfig getNextStepConfig() {
		return nextStepConfig;
	}

	public void setNextStepConfig(PrcStepConfig nextStepConfig) {
		this.nextStepConfig = nextStepConfig;
	}

	public ProjDevice getProjDevice() {
		return projDevice;
	}

	public void setProjDevice(ProjDevice projDevice) {
		this.projDevice = projDevice;
	}

	public Integer getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public SysDict getSoStatue() {
		return soStatue;
	}

	public void setSoStatue(SysDict soStatue) {
		this.soStatue = soStatue;
	}

	public SysFault getSysFault() {
		return sysFault;
	}

	public void setSysFault(SysFault sysFault) {
		this.sysFault = sysFault;
	}

	public SysPerson getEngineerSysUser() {
		return engineerSysUser;
	}

	public void setEngineerSysUser(SysPerson engineerSysUser) {
		this.engineerSysUser = engineerSysUser;
	}

	public Double getDistance() {
		return distance;
	}

	public void setDistance(Double distance) {
		this.distance = distance;
	}

	public Integer getServiceType() {
		return serviceType;
	}

	public void setServiceType(Integer serviceType) {
		this.serviceType = serviceType;
	}

	public Integer getProvince() {
		return province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public Integer getCounty() {
		return county;
	}

	public void setCounty(Integer county) {
		this.county = county;
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Integer updateUserId) {
		this.updateUserId = updateUserId;
	}


	
	


}